import request from '@/utils/request'

// 扫描全部IP
export function scanAllIP() {
  return request({
    url: '/api/ip/checkAll',
    method: 'get'
  })
}

// 扫描单个IP
export function scanSingleIP(query) {
  return request({
    url: '/api/ip/check',
    method: 'get',
    params: query
  })
}

// 查询IP列表
export function fetchIPList(query) {
  return request({
    url: '/api/ip/list',
    method: 'get',
    params: query
  })
}

// 查询IP端
export function ipSegmentList() {
  return request({
    url: '/api/ip/ipSegment',
    method: 'get'
  })
}
